import request from '@/api/request'

// 热销列表
export function findAllRecommends() {
  return request({
    url: '/lejuAdmin/homeRecommend/findAllRecommends',
    method: 'get',
  })
}

export function delRecommend(recommendId) {
    return request({
      url: `/lejuAdmin/homeRecommend/delRecommend/${recommendId}`,
      method: 'delete',
    })
  }

// 活动明细
export function homeRecommend(recommendId) {
  return request({
    url: `/lejuAdmin/homeRecommend/${recommendId}`,
    method: 'GET',
  })
}
// 

// 单独添加
  export function addRecommend(data) {
    return request({
      url: '/lejuAdmin/homeRecommend/addRecommend',
      method: 'post',
      data
    })
  }

//   更新
  export function updateRecommend(data) {
    return request({
      url: '/lejuAdmin/homeRecommend/updateRecommend',
      method: 'post',
      data
    })
  }